package com.woniuxy.microsystemsarserver.service;

import com.github.pagehelper.PageInfo;
import com.woniuxy.microsystemsarserver.bean.InvoiceBean;
import com.woniuxy.microsystemsarserver.bean.PageRequestBean;

import java.util.List;

/**
 *发票记录管理业务层接口
 * @author 杨灿
 */
public interface IInvoiceService {
    /**
     * 根据条件分页查询发票记录信息
     * @param invoiceBean
     * @param pageRequestBean
     * @return
     */
    PageInfo<InvoiceBean> findByPage(InvoiceBean invoiceBean, PageRequestBean pageRequestBean,Long userId);

    /**
     * 查询所有发票记录信息
     * @return
     */
    List<InvoiceBean> findAll(Long userId);

    /**
     * 根据id查询发票记录信息
     * @param invoiceId
     * @return
     */
    InvoiceBean findById(Long invoiceId);

    /**
     * 修改发票记录信息
     * @param invoiceBean
     * @return
     */
    int updateInvoice(InvoiceBean invoiceBean);
    /**
     * 新增门店信息
     * @param invoiceBean
     * @return
     */
    int saveInvoice(InvoiceBean invoiceBean);


}
